package com.king.tv.bean;

public class Video {

    /**
     * id : d18f27a4-611a-4b2d-82bb-4767bb85b7b1
     * flg : Y
     * ctime : 1566547751000
     * mtime : 1566895460000
     * title : 路飞
     * userId : 09b13d18-0168-4d80-8191-c0f8f8d9b028
     * type : 0
     * duration : 23
     * menuId : 0a4e1865-3e5e-4a59-a52d-8e3a67405a0a
     * bucketname : mediasystem
     * objectname : 5428b97b5f97edb2801da7baabaab539.mp4
     * format : mp4
     * user : {"id":"09b13d18-0168-4d80-8191-c0f8f8d9b028","flg":"Y","ctime":1566547353000,"mtime":1566920216000,"usercode":"3ltt21L7","nickname":"孙小花","isvip":"N","viptime":null,"sharenumber":null,"lastlogintime":null,"sex":"W","birthday":null,"tel":"","province":"山西","city":"太原","area":"天照","pic":"/upImg/201908272336541541380.jpg","vipTimeNote":""}
     * url : null
     * img : /upImg/201908261824394403193.jpg
     * typeNote : 直播
     */

    private String id;
    private String flg;
    private long ctime;
    private long mtime;
    private String title;
    private String userId;
    private int type;
    private String duration;
    private String menuId;
    private String bucketname;
    private String objectname;
    private String format;
    private UserBean user;
    private Object url;
    private String img;
    private String typeNote;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFlg() {
        return flg;
    }

    public void setFlg(String flg) {
        this.flg = flg;
    }

    public long getCtime() {
        return ctime;
    }

    public void setCtime(long ctime) {
        this.ctime = ctime;
    }

    public long getMtime() {
        return mtime;
    }

    public void setMtime(long mtime) {
        this.mtime = mtime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getBucketname() {
        return bucketname;
    }

    public void setBucketname(String bucketname) {
        this.bucketname = bucketname;
    }

    public String getObjectname() {
        return objectname;
    }

    public void setObjectname(String objectname) {
        this.objectname = objectname;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    public Object getUrl() {
        return url;
    }

    public void setUrl(Object url) {
        this.url = url;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getTypeNote() {
        return typeNote;
    }

    public void setTypeNote(String typeNote) {
        this.typeNote = typeNote;
    }

    public static class UserBean {
        /**
         * id : 09b13d18-0168-4d80-8191-c0f8f8d9b028
         * flg : Y
         * ctime : 1566547353000
         * mtime : 1566920216000
         * usercode : 3ltt21L7
         * nickname : 孙小花
         * isvip : N
         * viptime : null
         * sharenumber : null
         * lastlogintime : null
         * sex : W
         * birthday : null
         * tel :
         * province : 山西
         * city : 太原
         * area : 天照
         * pic : /upImg/201908272336541541380.jpg
         * vipTimeNote :
         */

        private String id;
        private String flg;
        private long ctime;
        private long mtime;
        private String usercode;
        private String nickname;
        private String isvip;
        private Object viptime;
        private Object sharenumber;
        private Object lastlogintime;
        private String sex;
        private Object birthday;
        private String tel;
        private String province;
        private String city;
        private String area;
        private String pic;
        private String vipTimeNote;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getFlg() {
            return flg;
        }

        public void setFlg(String flg) {
            this.flg = flg;
        }

        public long getCtime() {
            return ctime;
        }

        public void setCtime(long ctime) {
            this.ctime = ctime;
        }

        public long getMtime() {
            return mtime;
        }

        public void setMtime(long mtime) {
            this.mtime = mtime;
        }

        public String getUsercode() {
            return usercode;
        }

        public void setUsercode(String usercode) {
            this.usercode = usercode;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getIsvip() {
            return isvip;
        }

        public void setIsvip(String isvip) {
            this.isvip = isvip;
        }

        public Object getViptime() {
            return viptime;
        }

        public void setViptime(Object viptime) {
            this.viptime = viptime;
        }

        public Object getSharenumber() {
            return sharenumber;
        }

        public void setSharenumber(Object sharenumber) {
            this.sharenumber = sharenumber;
        }

        public Object getLastlogintime() {
            return lastlogintime;
        }

        public void setLastlogintime(Object lastlogintime) {
            this.lastlogintime = lastlogintime;
        }

        public String getSex() {
            return sex;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public Object getBirthday() {
            return birthday;
        }

        public void setBirthday(Object birthday) {
            this.birthday = birthday;
        }

        public String getTel() {
            return tel;
        }

        public void setTel(String tel) {
            this.tel = tel;
        }

        public String getProvince() {
            return province;
        }

        public void setProvince(String province) {
            this.province = province;
        }

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public String getArea() {
            return area;
        }

        public void setArea(String area) {
            this.area = area;
        }

        public String getPic() {
            if(pic == null){
                return "";
            }
            return pic;
        }

        public void setPic(String pic) {
            this.pic = pic;
        }

        public String getVipTimeNote() {
            return vipTimeNote;
        }

        public void setVipTimeNote(String vipTimeNote) {
            this.vipTimeNote = vipTimeNote;
        }

        @Override
        public String toString() {
            return "UserBean{" +
                    "id='" + id + '\'' +
                    ", flg='" + flg + '\'' +
                    ", ctime=" + ctime +
                    ", mtime=" + mtime +
                    ", usercode='" + usercode + '\'' +
                    ", nickname='" + nickname + '\'' +
                    ", isvip='" + isvip + '\'' +
                    ", viptime=" + viptime +
                    ", sharenumber=" + sharenumber +
                    ", lastlogintime=" + lastlogintime +
                    ", sex='" + sex + '\'' +
                    ", birthday=" + birthday +
                    ", tel='" + tel + '\'' +
                    ", province='" + province + '\'' +
                    ", city='" + city + '\'' +
                    ", area='" + area + '\'' +
                    ", pic='" + pic + '\'' +
                    ", vipTimeNote='" + vipTimeNote + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "Video{" +
                "id='" + id + '\'' +
                ", flg='" + flg + '\'' +
                ", ctime=" + ctime +
                ", mtime=" + mtime +
                ", title='" + title + '\'' +
                ", userId='" + userId + '\'' +
                ", type=" + type +
                ", duration='" + duration + '\'' +
                ", menuId='" + menuId + '\'' +
                ", bucketname='" + bucketname + '\'' +
                ", objectname='" + objectname + '\'' +
                ", format='" + format + '\'' +
                ", user=" + user +
                ", url=" + url +
                ", img='" + img + '\'' +
                ", typeNote='" + typeNote + '\'' +
                '}';
    }
}
